﻿<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:CustomControl1="clr-namespace:ScrumTable.UI.View.CustomControl;assembly=ScrumTable.UI.View" xmlns:Localization="clr-namespace:ScrumTable.UI.View.Localization;assembly=ScrumTable.UI.View" xmlns:UserControl="clr-namespace:ScrumTable.UI.View.Controls;assembly=ScrumTable.UI.View" x:Class="ScrumTable.UI.View.WinTouch.UserControls.LoadScreen"
	x:Name="UserControl"
	>

    <Grid  >
        <Grid.RowDefinitions>
            <RowDefinition></RowDefinition>
            <RowDefinition></RowDefinition>
        </Grid.RowDefinitions>



        <Border Grid.Row="1" BorderThickness="2" CornerRadius="10" BorderBrush="Black" Background="White" Opacity="0.9">

            <Grid>
                <Grid Height="150" Width="150" Grid.Row="1" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="10,30,10,10" Opacity="0.5">
                    <UserControl:WaitControl x:Name="WaitImage"></UserControl:WaitControl>
                </Grid>
                <Label Height="30" Margin="10,0,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" FontWeight="Bold">
                    <Label.Content>
                        <Localization:Translate Uid="Loading_Setting" Default="[Loading data...]" />
                    </Label.Content>
                </Label>
                <ListBox BorderThickness="0" BorderBrush="{x:Null}"  Background="Transparent"  Margin="10,30,10,10" ItemsSource="{Binding ItemsToLoad}" Width="500" Height="150" VerticalContentAlignment="Top" HorizontalContentAlignment="Center">
                    <ListBox.ItemsPanel>
                        <ItemsPanelTemplate>
                            <VirtualizingStackPanel Background="Transparent" />
                        </ItemsPanelTemplate>
                    </ListBox.ItemsPanel>
                    <ListBox.ItemTemplate>
                        <DataTemplate>
                            <Grid Grid.Row="0" VerticalAlignment="Stretch" HorizontalAlignment="Center" Width="450" >
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="*"></ColumnDefinition>
                                </Grid.ColumnDefinitions>
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="25"></RowDefinition>
                                    <RowDefinition Height="15"></RowDefinition>
                                </Grid.RowDefinitions>
                                <Label Content="{Binding Identifier}" Grid.ColumnSpan="2"></Label>
                                <Rectangle Grid.Column="0" Grid.Row="1"  Fill="{Binding ItemBrush}"></Rectangle>
                            </Grid>
                        </DataTemplate>
                    </ListBox.ItemTemplate>
                </ListBox>
            </Grid>
        </Border>
    </Grid>
</UserControl>